{include file=header.html}
<div class="feature-img"></div>
<div class="feature">
	<ul class="f-cb feature-a">
		<li>
			<a href="{url app=tese}" {if !$cate_id} class="active"{/if}>全部</a>
		</li>
		<!--{foreach from=$cates item=cate}-->
		<li>
			<a href="{url app=tese&cate_id=$cate.cate_id}" {if $cate_id eq $cate.cate_id} class="active"{/if}>{$cate.cate_name|escape}</a>
		</li>
		<!--{/foreach}-->
	</ul>
	<ul class="f-cb feature-b" id="feature_b">
		<!--{foreach from=$feature_list item=goods}-->
		<li>
			<div class="slide">
				<div class="img">
					<a href="{url app=goods&id=$goods.goods_id}" target="_blank">
						<img src="{$goods.default_image}" alt="{$goods.title|escape}" width="258" height="258" />
					</a>
				</div>
				<p class="price"> <b>￥</b>
					<span>{$goods.price}</span>
				</p>
				<p class="title">
					<a href="{url app=goods&id=$goods.goods_id}" target="_blank" title="{$goods.title|escape}">{$goods.title|escape}</a>
				</p>
			</div>
		</li>
		<!--{/foreach}-->
	</ul>
	<div class="goods-page-wrap f-cb">
		<div class="goods-page">{include file=goods.page.bottom.html}</div>
	</div>
	<!-- <a href="javascript:void(0)" class="feature-load" id="feature_load">加载更多>></a>-->
</div>
<script type="text/javascript">
    var $cate_id = {$cate_id};
	$(function(){
		jQuery('#feature_b > li').hover(function(){
			$(this).children('.slide').stop().animate({'top': '-3'},300);
		},function(){
			$(this).children('.slide').stop().animate({'top': '0'},300);
		});
		jQuery('#feature_load').bind('click',function(){
			 $.get('index.php?app=tese&act=ajax_data',function(data){
			 	if(data.done){
			 		//处理数据
			 		$('#feature_b').append();
			 	}else{
			 		$(this).html('无更多数据了');
			 	}
			 },'json');
		});
	});
</script>
{include file=footer.index.html}